# encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models

class Migration(SchemaMigration):

    def forwards(self, orm):
        
        # Adding model 'Layout'
        db.create_table('home_layout', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('small_item_1', self.gf('django.db.models.fields.related.ForeignKey')(related_name='small_item_1_service', to=orm['service.Service'])),
            ('small_item_2', self.gf('django.db.models.fields.related.ForeignKey')(related_name='small_item_2_service', to=orm['service.Service'])),
            ('small_item_3', self.gf('django.db.models.fields.related.ForeignKey')(related_name='small_item_3_service', to=orm['service.Service'])),
            ('small_item_4', self.gf('django.db.models.fields.related.ForeignKey')(related_name='small_item_4_service', to=orm['service.Service'])),
            ('small_item_5', self.gf('django.db.models.fields.related.ForeignKey')(related_name='small_item_5_service', to=orm['service.Service'])),
            ('large_item_1', self.gf('django.db.models.fields.related.ForeignKey')(related_name='large_item_1_service', to=orm['service.Service'])),
            ('large_item_2', self.gf('django.db.models.fields.related.ForeignKey')(related_name='large_item_2_service', to=orm['service.Service'])),
            ('welcome_copy', self.gf('django.db.models.fields.TextField')()),
            ('map_zoom', self.gf('django.db.models.fields.IntegerField')(default=8)),
            ('map_latitude', self.gf('django.db.models.fields.DecimalField')(max_digits=10, decimal_places=9)),
            ('map_longitude', self.gf('django.db.models.fields.DecimalField')(max_digits=10, decimal_places=9)),
        ))
        db.send_create_signal('home', ['Layout'])


    def backwards(self, orm):
        
        # Deleting model 'Layout'
        db.delete_table('home_layout')


    models = {
        'home.layout': {
            'Meta': {'object_name': 'Layout'},
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'large_item_1': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'large_item_1_service'", 'to': "orm['service.Service']"}),
            'large_item_2': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'large_item_2_service'", 'to': "orm['service.Service']"}),
            'map_latitude': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '9'}),
            'map_longitude': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '9'}),
            'map_zoom': ('django.db.models.fields.IntegerField', [], {'default': '8'}),
            'small_item_1': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'small_item_1_service'", 'to': "orm['service.Service']"}),
            'small_item_2': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'small_item_2_service'", 'to': "orm['service.Service']"}),
            'small_item_3': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'small_item_3_service'", 'to': "orm['service.Service']"}),
            'small_item_4': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'small_item_4_service'", 'to': "orm['service.Service']"}),
            'small_item_5': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'small_item_5_service'", 'to': "orm['service.Service']"}),
            'welcome_copy': ('django.db.models.fields.TextField', [], {})
        },
        'service.category': {
            'Meta': {'object_name': 'Category'},
            'active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
            'created_at': ('django.db.models.fields.DateTimeField', [], {}),
            'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
            'hero_image': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'category_image'", 'null': 'True', 'to': "orm['service.Image']"}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '45'}),
            'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '45', 'db_index': 'True'}),
            'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'})
        },
        'service.image': {
            'Meta': {'object_name': 'Image'},
            'alt': ('django.db.models.fields.CharField', [], {'max_length': '45', 'null': 'True', 'blank': 'True'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'image': ('django.db.models.fields.files.FileField', [], {'max_length': '100'})
        },
        'service.service': {
            'Meta': {'object_name': 'Service'},
            'active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
            'category': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['service.Category']"}),
            'created_at': ('django.db.models.fields.DateTimeField', [], {}),
            'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
            'hero_image': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['service.Image']", 'null': 'True', 'blank': 'True'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '45'}),
            'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '45', 'db_index': 'True'}),
            'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'})
        }
    }

    complete_apps = ['home']
